package com.kcyu.egoodsmapbackend.controller;

import cn.dev33.satoken.util.SaResult;
import cn.hutool.core.lang.UUID;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys")
public class SysController {

    @GetMapping("getSnowflakeId")
    public SaResult getSnowflakeId() {
        String string = UUID.fastUUID().toString(true);
        return SaResult.data(string);
    }
}
